<template>
	<div class="">

		<div class="zzc" v-if="showzzc" @click="close"></div>
		<div class="container">
			<div class="title">资产报废</div>
			<div class="search_box" style="flex-wrap: wrap;">

				<input type="text" autocomplete="off" v-model="zcnum" class="form-control search_inp"
					placeholder="输入资产编码">
				<input type="text" autocomplete="off" v-model="zcname" class="form-control search_inp"
					placeholder="输入名称">
				<el-select v-model="zcvalue" placeholder="资产类型" @change="page=1">
					<el-option v-for="item in zctype" :key="item.id" :label="item.name" :value="item.id">
					</el-option>
				</el-select>
				<el-select v-model="ppvalue" placeholder="品牌" @change="page=1">
					<el-option v-for="item in pplist" :key="item.id" :label="item.name" :value="item.id">
					</el-option>
				</el-select>
				<input type="text" autocomplete="off" v-model="specification" class="form-control search_inp"
					placeholder="输入规格/型号">

				<input type="text" autocomplete="off" v-model="supplier" class="form-control search_inp"
					placeholder="输入供应商">

				<div class="input-cont" style="margin-left:10px;width: 110px;margin-bottom: 20px;">
					<input type="text" class="form-control" v-model="uname" placeholder="使用人">

					<img src="@assets/images/close.png" class="clears" alt="" v-if="uname"
						@click="uname = '';suserid=''">
					<span class="iconfont icon-list" data-toggle="modal" data-target="#keshi"
						@click="utype='search';openuseralert()"></span>
				</div>

				<el-date-picker prefix-icon='none' style="width: 120px;margin-left: 10px;margin-bottom: 20px;"
					v-model="createStartDate" type="date" @change="changedate(1)" value-format="timestamp"
					placeholder="开始日期">
				</el-date-picker>
				<el-date-picker prefix-icon='none' style="width: 120px;margin-left: 10px;margin-bottom: 20px;"
					v-model="createEndDate" type="date" @change="changedate(2)" value-format="timestamp"
					placeholder="结束日期">
				</el-date-picker>

				<div class="input-cont" style="margin-left:10px;width: 110px;margin-bottom: 20px;">
					<input type="text" class="form-control" readonly v-model="departname" placeholder="所属科室">

					<img src="@assets/images/close.png" class="clears" alt="" v-if="departname"
						@click="departname = '';departId=''">
					<span class="iconfont icon-list" data-toggle="modal" data-target="#keshi"
						@click="utype='search';alert_show2=!alert_show2;"></span>
				</div>


				<div class="sea_btn sear_btns" @click="search()" style="margin-bottom: 20px;">
					<img src="@assets/images/search.png" alt="">
					查询
				</div>
				<div class="down_btn sear_btns" v-if="$permissions.indexOf(143)  != -1" @click="down"
					style="margin-bottom: 20px;">
					<img src="@assets/images/logout-rounded.png" alt="">
					导出
				</div>
				<div class="down2_btn sear_btns" v-if="$permissions.indexOf(153)  != -1" @click="delopen"
					style="margin-bottom: 20px;">
					<img src="@assets/images/huifu.png" alt="">
					恢复
				</div>
			</div>
			<div class="table-responsive">
				<h2 class="tcent" v-if="list.length ==0">暂时没有数据</h2>
				<table class="table table-hover" v-else>
					<tr>
						<th>
							<input type="checkbox" @change="changeall" v-model="choseall" name="all" id="scrap"><label
								for="scrap"></label>
						</th>
						<th>资产编码</th>
						<th>名称</th>
						<th>资产类型</th>
						<th>品牌</th>
						<th>规格/型号</th>
						<!-- <th>供应商</th> -->
						<th>使用人</th>
						<th>所属科室</th>
						<th>详细地点</th>
						<th>二维码打印时间</th>
						<th class="tcent">操作</th>
					</tr>
					<tr v-for="item,index in list">
						<td>
							<input type="checkbox" v-model="item.chosesf" @change="chosechange" name="chose"
								:id="'scrap'+item.id"><label :for="'scrap'+item.id"></label>
						</td>
						<td>{{item.zcCode}}</td>
						<td style="max-width: 300px;">{{item.zcName}}</td>
						<td>{{item.zcTypeName}}</td>
						<td>{{item.zcBrandName}}</td>
						<td>{{item.zcMode}}</td>
						<!-- <td>{{item.provider}}</td> -->
						<td>{{item.responsibleName}}</td>
						<td>{{item.deptName}}</td>
						<td>{{item.area}}</td>
						<td>{{item.lastTimePrint}}</td>
						<td class="tcent">
							<a href="javascript:;" class="btn-blue btns" @click="id=item.id;getinfo()">查看</a>

						</td>
					</tr>

				</table>

				<div class="page_box">
					<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
						:current-page="page" :page-sizes="[10, 30, 60, 100]" :page-size="limit"
						layout="total, sizes, prev, pager, next, jumper" :total="inglen">
					</el-pagination>
				</div>

			</div>

		</div>
		<!--选择科室弹窗-->
		<div :class="alert_show2?'modal in fade':'modal fade'" tabindex="-1" role="dialog" id="keshi"
			:style="alert_show2?'display: block;z-index:200':''">
			<div class="cent w600"
				style="justify-content: center;width: 600px;height: calc(100% - 312px);margin: 156px auto;">
				<div class="modal-dialog" role="document">
					<div class="modal-content">
						<div class="modal-header tit">
							<em></em>选择科室
							<div class="right" @click="alert_show2=false;roomsearch = '';getallrooms()">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close"
									style="line-height: normal;"><span class="iconfont icon-cha"
										aria-hidden="true"></span> </button>
							</div>
						</div>
						<!--表单-->
						<div class="modal-body h100 search-cont" style="height: calc(100vh - 500px);">
							<div class="search">
								<div class="form-group" style="display: flex;padding-right: 0;">
									<input class="form-control" autocomplete="off" @keydown.enter="getallrooms"
										placeholder="输入关键字" v-model="roomsearch">

									<div style="margin-left: 10px;" class="btn btn-success" @click="getallrooms">
										<span class="iconfont icon-chaxun"
											style="line-height: 34px;vertical-align: baseline;"></span>
									</div>
								</div>
							</div>
							<div class="treelist" v-if="roomsearch">
								<div v-if="allrooms.length > 0">
									<div class="li" v-for="item in allrooms" @click="sear_choserome(item)">
										{{item.name}}
									</div>
								</div>
								<h2 class="tcent" v-else>搜索不到该内容</h2>
							</div>
							<div class="zTreeDemoBackground left"
								:style="roomsearch==''?'display:block':'display:none'">
								<ul id="treeDemo" class="ztree" @select="choseroom"></ul>
							</div>
						</div>
						<div class="modal-footer tcent">
							<button class="btn btn-primary"
								@click="alert_show2=false;roomsearch = '';getallrooms()">确定</button>
							<button class="btn btn-info"
								@click="alert_show2=false;roomsearch = '';getallrooms()">关闭</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--资产详情-->
		<div :class="showadd?'modal in fade':'modal fade'" tabindex="-1" role="dialog" id="keshi"
			:style="showadd?'display: block;z-index:199;':'z-index:199;'">
			<div class="cent w600" style="justify-content: center;width: 860px !important;">
				<div class="modal-dialog" role="document" style="width: 100%;height: 700px;">
					<div class="modal-content">
						<div class="modal-header tit">
							<em></em>资产详情
							<div class="right" @click="showadd=false;activeName='first'">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close"
									style="line-height: normal;"><span class="iconfont icon-cha"
										aria-hidden="true"></span> </button>
							</div>
						</div>
						<!--表单-->
						<div class="modal-body h100 search-cont" style="padding: 15px 27px;height: 656px;">
							<el-tabs v-model="activeName">
								<el-tab-pane label="基本信息" name="first">
									<div class="sublist">
										<div class="subli">
											<div class="subli_left">
												<label class="subl">名称：</label>
												<div class="input-cont">
													<input type="text" class="form-control" readonly
														v-model="info.zcName" :title="info.zcName">
												</div>
											</div>
											<div class="subli_left">
												<label class="subl">资产类型：</label>
												<div class="input-cont">
													<input type="text" class="form-control" readonly
														v-model="info.zcTypeName" :title="info.zcTypeName">
												</div>
											</div>

										</div>

										<div class="subli">
											<div class="subli_left">
												<label class="subl">品牌：</label>
												<div class="input-cont">
													<input type="text" class="form-control" readonly
														v-model="info.zcBrandName" :title="info.zcBrandName">
												</div>
											</div>
											<div class="subli_left">
												<label class="subl">规格/型号：</label>
												<div class="input-cont">
													<input type="text" class="form-control" readonly
														v-model="info.zcMode" :title="info.zcMode">
												</div>
											</div>
										</div>

										<div class="subli">
											<div class="subli_left">
												<label class="subl">供应商：</label>
												<div class="input-cont">
													<input type="text" class="form-control" readonly
														v-model="info.provider" :title="info.provider">
												</div>
											</div>
											<div class="subli_left">
												<label class="subl">使用人：</label>
												<div class="input-cont">
													<input type="text" class="form-control" readonly
														v-model="info.responsibleName" :title="info.responsibleName">
												</div>
											</div>
										</div>
										<div class="subli">
											<div class="subli_left">
												<label class="subl">所属科室：</label>
												<div class="input-cont">
													<input type="text" class="form-control" readonly
														v-model="info.deptName" :title="info.deptName">
												</div>
											</div>
											<div class="subli_left">
												<label class="subl">详细地点：</label>
												<div class="input-cont">
													<input type="text" class="form-control" readonly v-model="info.area"
														:title="info.area">
												</div>
											</div>
										</div>
										<div class="subli">
											<div class="subli_left">
												<label class="subl">报废申请人：</label>
												<div class="input-cont">
													<input type="text" class="form-control" readonly
														v-model="info.personUselessName" :title="info.personUselessName">
												</div>
											</div>
											<div class="subli_left">
												<label class="subl">报废审核人：</label>
												<div class="input-cont">
													<input type="text" class="form-control" readonly
														v-model="info.uselessAgreeName" :title="info.uselessAgreeName">
												</div>
											</div>
										</div>
										<div class="subli">
											<div class="subli_left" style="width: 100%;align-items: flex-start;">
												<label class="subl">报废说明：</label>
												<div class="input-cont">
													<input style="width: 670px;" type="text" class="form-control"
														readonly v-model="info.uselessDescription"
														:title="info.uselessDescription">
												</div>
											</div>
										</div>
										<div class="subli">
											<div class="subli_left" style="width: 100%;align-items: flex-start;">
												<label class="subl">报废图片：</label>
												<div class="input-cont">
													<div class="imgs">
														<div v-for="item in info.uselessEnclosureList">
															<!-- {{$url + item.relativePath}} -->
															<el-image style="width: 200px; height: 200px" fit="cover"
																:src="$url + item.relativePath"
																:preview-src-list="srcList">
															</el-image>
														</div>

													</div>

												</div>
											</div>
										</div>
									
									</div>
								</el-tab-pane>
								<el-tab-pane label="计算机信息" name="second">
									<div class="sublist">
										<div class="subli">
											<div class="subli_left">
												<label class="subl">计算机名</label>
												<div class="input-cont">
													<input type="text" class="form-control" v-model="info.pcName"
														readonly :title="info.pcName">
												</div>
											</div>
											<div class="subli_left">
												<label class="subl">操作系统</label>
												<div class="input-cont">
													<input type="text" class="form-control"
														v-model="info.pcOperationSystem" readonly
														:title="info.pcOperationSystem">
												</div>
											</div>

										</div>

										<div class="subli">
											<div class="subli_left">
												<label class="subl">IP地址</label>
												<div class="input-cont">
													<input type="text" class="form-control" v-model="info.pcIp" readonly
														:title="info.pcIp">
												</div>
											</div>
											<div class="subli_left">
												<label class="subl">mac地址</label>
												<div class="input-cont">
													<input type="text" class="form-control" v-model="info.pcMac"
														readonly :title="info.pcMac">
												</div>
											</div>


										</div>

										<div class="subli">
											<div class="subli_left">
												<label class="subl">主板</label>
												<div class="input-cont">
													<input type="text" class="form-control" v-model="info.pcMainBoard"
														readonly :title="info.pcMainBoard">
												</div>
											</div>
											<div class="subli_left">
												<label class="subl">CPU</label>
												<div class="input-cont">
													<input type="text" class="form-control" v-model="info.pcCpu"
														readonly :title="info.pcCpu">
												</div>
											</div>

										</div>

										<div class="subli">
											<div class="subli_left">
												<label class="subl">内存</label>
												<div class="input-cont">
													<input type="text" class="form-control"
														v-model="info.pcInternalStorage" readonly
														:title="info.pcInternalStorage">
												</div>
											</div>
											<div class="subli_left">
												<label class="subl">硬盘</label>
												<div class="input-cont">
													<input type="text" class="form-control" v-model="info.pcCaliche"
														readonly :title="info.pcCaliche">
												</div>
											</div>

										</div>

										<div class="subli">

											<div class="subli_left">
												<label class="subl">显卡</label>
												<div class="input-cont">
													<input type="text" class="form-control" v-model="info.pcVideoCard"
														readonly :title="info.pcVideoCard">
												</div>
											</div>
											<div class="subli_left">
												<label class="subl">硬盘大小</label>
												<div class="input-cont">
													<input type="text" class="form-control"
														v-model="info.pcCalicheCapacity" readonly
														:title="info.pcCalicheCapacity">
												</div>
											</div>
										</div>

										<div class="subli">
											<div class="subli_left">
												<label class="subl">网卡</label>
												<div class="input-cont">
													<input type="text" class="form-control" v-model="info.pcNetworkCard"
														readonly :title="info.pcNetworkCard">
												</div>
											</div>

											<div class="subli_left">
												<label class="subl">硬盘序列号</label>
												<div class="input-cont">
													<input type="text" class="form-control"
														v-model="info.pcCalicheNumber" readonly
														:title="info.pcCalicheNumber">
												</div>
											</div>
										</div>

										<div class="subli">
											<div class="subli_left">
												<label class="subl">序列号</label>
												<div class="input-cont">
													<input type="text" class="form-control"
														v-model="info.pcSerialNumber" readonly
														:title="info.pcSerialNumber">
												</div>
											</div>

											<div class="subli_left">
												<label class="subl">BIOS信息</label>
												<div class="input-cont">
													<input type="text" class="form-control" v-model="info.pcBiosInfo"
														readonly :title="info.pcBiosInfo">
												</div>
											</div>
										</div>

										<div class="subli">
											<div class="subli_left">
												<label class="subl">屏幕分辨率</label>
												<div class="input-cont">
													<input type="text" class="form-control" v-model="info.pcResolution"
														readonly :title="info.pcResolution">
												</div>
											</div>
											<div class="subli_left">
												<label class="subl">打印设备</label>
												<div class="input-cont">
													<input type="text" class="form-control"
														v-model="info.pcPrintEquipment" readonly
														:title="info.pcPrintEquipment">
												</div>
											</div>

										</div>

										<div class="subli">

											<div class="subli_left">
												<label class="subl">生产日期</label>
												<div class="input-cont">
													<input type="text" class="form-control" v-model="info.pcCreateDate"
														readonly :title="info.pcCreateDate">
												</div>
											</div>
											<div class="subli_left">
												<label class="subl">光驱</label>
												<div class="input-cont">
													<input type="text" class="form-control" v-model="info.pcCdDriver"
														readonly :title="info.pcCdDriver">
												</div>
											</div>
										</div>

										<div class="subli">
											<div class="subli_left">
												<label class="subl">串口设备</label>
												<div class="input-cont">
													<input type="text" class="form-control"
														v-model="info.pcSerialPortEquipment" readonly
														:title="info.pcSerialPortEquipment">
												</div>
											</div>
										</div>
									</div>
								</el-tab-pane>
							</el-tabs>
						</div>
					</div>
				</div>
			</div>
		</div>

		<!--报修人-->
		<div :class="user_alert?'modal in fade':'modal fade'" role="dialog"
			:style="user_alert?' align-items: center;justify-content: center;display: flex;z-index:200;':'z-index:200'"
			id="engineer">

			<div class="cent w700" style="height: 865px;max-width: 955px;max-height:calc(100vh - 50px)">

				<div class="modal-dialog" role="document">
					<div class="modal-content" style="overflow: visible;">
						<div class="modal-header tit">
							<em></em>选择用户
							<div class="right" @click="closeusertalert">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
										class="iconfont icon-cha" aria-hidden="true"></span> </button>
							</div>
						</div>
						<!--表单-->
						<div class="modal-body h100"
							style="overflow-x: hidden;overflow-y:scroll;height:760px;max-height:calc(100vh - 150px)">

							<div class="left">
								<div class="zTreeDemoBackground">
									<ul id="treeDemo4" class="ztree" @select="choseroom_user"></ul>
								</div>
							</div>
							<div class="right" style="overflow: visible;">
								<div class="search">
									<!-- <form> -->
									<div class="form-group" style="display: flex;padding-right: 0;">
										<input class="form-control" autocomplete="off"
											@keydown.enter="page2=1;word_users=word_user;getalluserlist()"
											v-model="word_user" placeholder="输入关键字">
										<div style="margin-left: 10px;" class="btn btn-success"
											@click="page2=1;word_users=word_user;getalluserlist()">
											<span class="iconfont icon-chaxun"
												style="line-height: 34px;vertical-align: baseline;"></span>
										</div>
									</div>
									<!-- </form> -->
								</div>

								<div class="enr_alert_scorll">
									<div style="height: 552px;">
										<h2 class="tcent" v-if="user_all.length ==0">暂时没有数据</h2>
										<table class="table table-hover smallTab" v-else>
											<tr>
												<th></th>
												<th>账号</th>
												<th>姓名</th>
												<th>电话</th>
											</tr>
											<tr v-for="item,index in user_all">
												<td>
													<input type="radio" v-model="userid" :value="item.id"
														@change="changechose(item.id,item.realName,item.phoneNo)"
														name="chose2" :id="'c'+item.id"><label
														:for="'c'+item.id"></label>
												</td>
												<td>{{item.userName}}</td>
												<td>{{item.realName}}</td>
												<td>{{item.phoneNo}}</td>
											</tr>
										</table>
									</div>
									<div class="Spage" style="margin: 20px 0;">
										<el-pagination @current-change="handleCurrentChange2" :current-page="page2"
											style="display: flex;justify-content: center;" :pager-count="5"
											:page-size="10" :page-count="num2" layout="prev, pager, next">
										</el-pagination>
									</div>


									<div class="tcent" style="margin-bottom: 30px;">
										<button class="btn btn-primary" @click="sure_user">确定</button>&emsp;
										<button class="btn btn-default" @click="closeusertalert">关闭</button>
									</div>
								</div>


							</div>
						</div>
					</div>
				</div>
			</div>
		</div>

		<div class="alzzc" v-if="delalert">
			<div class="del_alert">
				<div class="modal-header tit" style="text-align: left;">
					<em></em>信息
					<div class="right" @click="delalert=false">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"
							style="line-height: normal;"><span class="iconfont icon-cha" aria-hidden="true"></span>
						</button>
					</div>
				</div>
				<div class="alert_info">确认要恢复选中的<span>{{delnum}}</span>条数据吗？</div>
				<div class="alert_btns">
					<div class="alert_sure" @click="del">确认</div>
					<div class="alert_close" @click="delalert=false">取消</div>
				</div>
			</div>
		</div>

		<div class="loading-content" v-if="showloading">
			<div class="loading-spinner">
				<svg viewBox="25 25 50 50" class="circular">
					<circle cx="50" cy="50" r="20" fill="none" class="path"></circle>
				</svg>
			</div>
			<div class="loading-text">加载中...</div>
		</div>
	</div>
</template>

<script type="text/babel">
	import $ from 'jquery'
	export default {
		name: "",
		data() {
			return {
				activeName:"first",
				options: [],
				srcList: [],
				value:"",
				values:"",
				zcvalue:"",
				zcvalues:"",
				ppvalue:"",
				ppvalues:"",
				zcnum:"",
				zcnums:"",
				zcname:"",
				zcnames:"",
				suppliers:"",
				supplier:"",
				specifications:"",
				specification:"",
				suserids:"",
				suserid:"",
				uname:"",
				unames:"",
				createStartDates:"",
				createStartDate:"",
				createEndDates:"",
				createEndDate:"",
				
				userid:"",
				roomsearch:"",
				departname:"",
				username:"",
				dname:"",
				uid:"",
				user:"",
				delalert:false,
				showbf:false,
				isclick1:false,
			
				setting: {
					treeId: 'id',
					data: {
						key: {
							name: 'name'
						}
					},
					callback: {
						onClick: this.choseroom
					}
				},
				zNodes: [],
				word_user:"",
				word_users:"",
				
				doalert:false,
				alert_show2:false,
				
				choseall:false,
				utype:"",
				alert_enger: false,
				showadd: false,
				
				showzzc: false,
				cuserlist: [],
				zNodes_u: [],
				ztree_obj_u: {},
				treeClickCount4: 0,
				treeClickCount: 0,
				setting_u: {
					treeId: 'id',
					data: {
						key: {
							name: 'name'
						}
					},
					callback: {
						onClick: this.choseroom_user
					}
				},
				page: 1,
				page2: 1,
				list: [],
				inglen: 0,
				inglen2: 0,
				limit: 10,
				limit2: 10,
				num: 1,
				num2: 1,
				info: {},
				showinfo: false,
				showloading: false,
				user_alert: false,
				alert_show: false,
				user_all:[],
				pplist:[],
				zctype:[],
				
				delnum:'',
				departId:'',
				departIds:'',
				uselessDescription:'',
				uselessEnclosure:'',
				delalert:false,
				tabshow:false,
			}
		},
		
		created() {
			this.$http.defaults.headers["Authorization"] = sessionStorage.getItem('token')
			this.token = sessionStorage.getItem('token')
		},
		mounted() {
			this.getallrooms();
			this.getrooms();
			this.getpp();
			this.gettype();
			this.getlist();
		},
		watch:{
			roomsearch:{
					handler(newValue,oldValue){
					if(newValue == ''){
						
					}else{
						this.getallrooms();
					}
				}
			},
		},
		beforeRouteEnter(to, from, next) { //路由导航钩子，通过页面路由标记是否需要清空页面数据重新加载
		    to.meta['fromPath'] = from.path;
			to.meta['needFresh'] = false;
		    
		    next();
		  },
		activated(){
			
		},
		methods: {
			delopen(){
				var ids=''
				var num = 0
				for (var i = 0; i < this.list.length; i++) {
					if(this.list[i].chosesf==true){
						ids = ids+''+this.list[i].id+','
						num++
					}
				}
				this.ids = ids.substring(0,ids.length-1)
				if(this.ids==''){
					this.$Toast('暂无选中');
					return
				}
				this.delnum = num
				this.delalert=true		
			},
			// 删除
			del(){
				this.delalert=false
				var param = {
					ids:this.ids
				}
				var that = this
				this.$http.post(this.$url + '/zc/recoveryScrap', this.$qs.stringify(param))
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.$Toast(response.data.msg);
						that.page=1
					that.getlist()
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			},
			changeall(){
				if(this.choseall){
					for (var i = 0; i < this.list.length; i++) {
						this.list[i].chosesf = true
					}
				}else{
					for (var i = 0; i < this.list.length; i++) {
						this.list[i].chosesf = false
					}
				}
			},
			chosechange(){
				for (var i = 0; i < this.list.length; i++) {
					if(this.list[i].chosesf == true){
						this.choseall=true
					}else{
						this.choseall=false
						break
					}
					
				}
			},
			down(){
				this.showloading=true
				var that = this
				this.$http.get(this.$url + '/sys/excel/zc/export?zcStatus=1',{responseType:"blob"})
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.$Toast('导出成功！');
						const blob = new Blob([response.data]);
						      const fileName ='资产报废列表.xlsx';
						      if ("download" in document.createElement("a")) {
						        // 非IE下载
						        const elink = document.createElement("a");
						        elink.download = fileName;
						        elink.style.display = "none";
						        elink.href = URL.createObjectURL(blob);
						        document.body.appendChild(elink);
						        elink.click();
						        URL.revokeObjectURL(elink.href); // 释放URL 对象
						        document.body.removeChild(elink);
								that.showloading=false
						      } else {
						        // IE10+下载
						        navigator.msSaveBlob(blob, fileName);
								that.showloading=false
						      }
						
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			},
			changedate(ty) {
				if (!this.createStartDate && !this.createEndDate && this.createStartDate > this.createEndDate) {
					this.$Toast('选择的结束日期在开始日期之前');
					if (ty == 1) {
						this.createStartDate = ''
					} else {
						this.createEndDate = ''
					}
					return
				}
			},
			search(){
				this.zcnames = this.zcname
				this.zcnums = this.zcnum
				this.zcvalues = this.zcvalue
				this.ppvalues = this.ppvalue
				this.suppliers = this.supplier
				this.unames = this.uname
				this.suserids = this.suserid
				this.createStartDates = this.createStartDate
				this.createEndDates = this.createEndDate
				this.departIds = this.departId
				this.specifications = this.specification
				this.page = 1
				this.getlist()
			},
			querySearch_d(queryString, cb) {
				var that = this
				var url = encodeURI(this.$url + '/sys/dept/select?name='+this.roomsearch)
				this.$http.get(url)
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.allrooms = response.data.data
						var restaurants_d = that.allrooms;
						var results = queryString ? restaurants_d.filter(that.createFilter_d(queryString)) : restaurants_d;
						// 调用 callback 返回建议列表的数据
						if(results.length == 0){
							results.unshift({name:"暂无内容",address:""})
						}else{
							if(results[0].id){
								results.unshift({name:"科室",address:"地址"})
							}
						}
						
						cb(results);
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			   
			},
			createFilter_d(queryString) {
				return (restaurant) => {
					console.log(restaurant.name)
					return (restaurant.name.toLowerCase().indexOf(queryString.toLowerCase()) != -1);
					
				};
			},
			handleSelect_d(item) {
				if(!item.id){
					this.dname=''
					return 
				}
				this.dname = item.name
				this.info.deptId = item.id
				// this.info.area = item.address
				this.isclick1=true
				
			},
			// 科室树状图选择
			choseroom(data, node, treeNode) {
				this.treeClickCount++;
				if (this.treeClickCount >= 2) {
					return;
				}
				this.timer = window.setTimeout(() => {
					if (this.treeClickCount == 1) {
						this.treeClickCount = 0;
						console.log('单击事件,可在此处理对应逻辑')
						if(this.utype == 'search'){
							this.departId = treeNode.id
							this.departname = treeNode.name
						}else{
							this.info.deptId = treeNode.id
							this.dname=treeNode.name
						}
						
					} else if (this.treeClickCount > 1) {
						this.treeClickCount = 0;
						console.log('双击事件,可在此处理对应逻辑')
					}
				}, 300);
			},
			sear_choserome(item) {
				this.departId = item.id
				this.departname = item.name
				this.roomsearch=item.name
				this.getallrooms()
			},
			
			handleCurrentChange2(val) {
			  console.log(`当前页: ${val}`);
								this.page2 = val
								this.getalluserlist()
			},
			
			closealert(){
				
				this.choseall2=false
				this.alert_show=false;
				// this.user_c = []
				// this.cname = []
				// this.cnames = []
				this.word_user = ''
				this.word_users = ''
				this.deptId = ''
				this.did = ''
				this.getrooms()
				this.ztree_obj_u.cancelSelectedNode();
				this.getalluserlist()
			},
			
			changechose(id,name,tel){
				if(this.utype == 'search'){
					this.uname = name
					this.suserid = id
					this.uid = id
				}else if(this.utype == 'add'){
					this.username = name
					this.info.responsibleId = id
				}
			},
			sure_user(){
				
				this.user_alert = false
			},
			closeusertalert(){
				this.user_alert = false
				this.username = ''
				this.$forceUpdate()
				// this.uname = ''
				this.word_user = ''
				this.did = ''
				this.userid = ''
				this.ztree_obj_u.cancelSelectedNode();
				this.getrooms()
				this.getalluserlist()
			},
			openuseralert(){
				this.page2 = 1
				this.username = ''
				this.word_user = ''
				this.did = ''
				this.userid = ''
				this.ztree_obj_u.cancelSelectedNode();
				this.getrooms()
				this.getalluserlist()
				this.user_alert = true
			},
			// 获取弹窗里的用户
			getalluserlist() {
				this.choseall2 = false
				
				var id = this.did?this.did:''
				var that = this
				var url = encodeURI(this.$url + '/sys/user/list?page='+this.page2+'&limit='+this.limit2+'&deptId='+id+'&userName='+this.word_users)
				this.$http.get(url)
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.user_all = response.data.data.records
						that.cuserlist = response.data.data.records
						for (var i = 0; i < that.user_all.length; i++) {
							that.user_all[i].id = window.atob(that.user_all[i].id)
							that.cuserlist[i].id = that.user_all[i].id
						}
						if(that.utype == 'addsp'){
							var a = 0
							for (var i = 0; i < that.cuserlist.length; i++) {
								console.log(that.user_c.indexOf(that.cuserlist[i].id))
								if(that.user_c.indexOf(that.cuserlist[i].id) > -1){
									a++
									that.cuserlist[i].chosesf = true
								}else{
									that.cuserlist[i].chosesf = false
								}
							}
							
						}else if(that.utype == 'addcs'){
							var a = 0
							for (var i = 0; i < that.cuserlist.length; i++) {
								if(that.user_c2.indexOf(that.cuserlist[i].id) > -1){
									a++
									that.cuserlist[i].chosesf = true
								}else{
									that.cuserlist[i].chosesf = false
								}
							}
						}
						if(a == that.cuserlist.length){
							that.choseall2=true
						}else{
							that.choseall2=false
						}
						that.inglen2 = response.data.data.total
						if (that.inglen2 > that.limit2) {
							that.num2 = response.data.data.pages
						} else {
							that.num2 = 1
						}
					})
					.catch(function(error) {
						console.log(error);
						// sessionStorage.setItem('token','undefined')
						// that.$router.push('/login')
					});
			},
			// 科室树状图选择
			choseroom_user(data, node, treeNode) {
				this.treeClickCount4++;
				if (this.treeClickCount4 >= 2) {
					return;
				}
				this.timer = window.setTimeout(() => {
					if (this.treeClickCount4 == 1) {
						this.treeClickCount4 = 0;
						console.log('单击事件,可在此处理对应逻辑')
							
								this.did = treeNode.id
							this.page2=1
							this.getalluserlist()
						
					} else if (this.treeClickCount4 > 1) {
						this.treeClickCount4 = 0;
						
						this.ztree_obj_u.cancelSelectedNode();
						console.log('双击事件,可在此处理对应逻辑')
					}
				}, 300);
			},
			// 获取全部科室
			getallrooms() {
				var that = this
				var url = encodeURI(this.$url + '/sys/dept/select?name=' + this.roomsearch)
				this.$http.get(url)
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.allrooms = response.data.data
						that.$forceUpdate()
					})
					.catch(function(error) {
						console.log(error);
					});
			},
			// 获取科室
			getrooms() {
				var param = {
					parentId: 0
				}
				var that = this
				this.$http.post(this.$url + '/sys/dept/tree', this.$qs.stringify(param))
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						
						that.zNodes = response.data.data
						that.ztree_obj = $.fn.zTree.init($("#treeDemo"), that.setting, that.zNodes);
						var  nodes = that.ztree_obj.getNodes();
						for  ( var  i = 0; i < nodes.length; i++) {  //设置节点展开
						    that.ztree_obj.expandNode(nodes[i],  true ,  false ,  true );
						}
						that.zNodes_u = response.data.data
						that.ztree_obj_u = $.fn.zTree.init($("#treeDemo4"), that.setting_u, that.zNodes_u);
						 var  nodes = that.ztree_obj_u.getNodes();
						for  ( var  i = 0; i < nodes.length; i++) {  //设置节点展开
						    that.ztree_obj_u.expandNode(nodes[i],  true ,  false ,  true );
						}
					})
					.catch(function(error) {
						console.log(error);
						
						that.$Toast('网络拥堵，刷新一下');
					});
			
			},
			
			handleSelect_u(item) {
				// if(!item.id){
				// 	this.info.responsibleId=''
				// 	return 
				// }
				this.username = item.realName
				this.info.responsibleId = item.id				
			},
			
			querySearch_u(queryString, cb) {
				var that = this
				var name = this.info.commitUserName?this.info.commitUserName:''
				var id = this.info.departId?this.info.departId:''
				var url = encodeURI(this.$url + '/sys/user/select?realName='+name)
				this.$http.get(url)
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.restaurants_u = response.data.data
						that.restaurants_u.unshift({userName:"账号",realName:"姓名",departName:"科室",phoneNo:"电话"})
						var restaurants_u = that.restaurants_u;
						var results = queryString ? restaurants_u.filter(that.createFilter_u(queryString)) : restaurants_u;
						// 调用 callback 返回建议列表的数据
						if(results.length == 0){
							results.unshift({userName:"暂无内容",realName:"",departName:"",phoneNo:""})
						}else{
							if(results[0].id){
								results.unshift({userName:"账号",realName:"姓名",departName:"科室",phoneNo:"电话"})
							}
						}
						
						cb(results);
						// console.log(that.restaurants)
					})
					.catch(function(error) {
						console.log(error);						
						that.$Toast('网络拥堵，刷新一下');
					});
					
			  
			},
			createFilter_u(queryString) {
				return (restaurant) => {
					// if(restaurant.realName){
						return (restaurant.realName.toLowerCase().indexOf(queryString.toLowerCase()) != -1);
					// }
				};
			},
			openadd(){
				this.showadd=true
				this.type = 'add'
			},
			
			getinfo(){
				var param = {
					id:this.id
				}
				var that = this
				this.$http.post(this.$url + '/zc/detail', this.$qs.stringify(param))
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.info = response.data.data
						that.srcList = []
						if(that.info.uselessEnclosureList){
							for (var i = 0; i < that.info.uselessEnclosureList.length; i++) {
								that.srcList[i] = that.$url + that.info.uselessEnclosureList[i].relativePath
							}
							
						}
						that.showadd = true
						that.showloading = false
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			},
			
			
			closeadd(){
				this.showadd = false;
				
				this.info =  {}
			},
			
			handleCurrentChange2(val) {
				this.page2 = val
				this.getalluserlist()
			},
			 handleSizeChange(val) {
				this.limit = val
				this.choseall = false
				this.getlist()
			},
			handleCurrentChange(val) {
				this.page = val
				this.choseall = false
				this.getlist()
			},
			
			// 点击遮罩层
			close(){
				this.options_show=false
				this.showzzc=false
				this.showinfo=false
			},
			
			//显示当前时间（年月日时分秒）
			timeFormate(timeStamp) {
			      let year = new Date(timeStamp).getFullYear();
			      let month =new Date(timeStamp).getMonth() + 1 < 10? "0" + (new Date(timeStamp).getMonth() + 1): new Date(timeStamp).getMonth() + 1;
			      let date =new Date(timeStamp).getDate() < 10? "0" + new Date(timeStamp).getDate(): new Date(timeStamp).getDate();
				  let hh =new Date(timeStamp).getHours() < 10? "0" + new Date(timeStamp).getHours(): new Date(timeStamp).getHours();
				  let mm =new Date(timeStamp).getMinutes() < 10? "0" + new Date(timeStamp).getMinutes(): new Date(timeStamp).getMinutes();
				  let ss =new Date(timeStamp).getSeconds() < 10? "0" + new Date(timeStamp).getSeconds(): new Date(timeStamp).getSeconds();
				  
			    return year + "-" + month + "-" + date ;
			},
			getpp() {
				var that = this
				this.$http.get(this.$url + '/zc/brand/select')
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.pplist = response.data.data
						that.pplist.unshift({'name':'全部品牌',id:''})
						that.$forceUpdate()
					})
					.catch(function(error) {
						console.log(error);
						// sessionStorage.setItem('token','undefined')
						// that.$router.push('/login')
						that.$Toast('网络拥堵，刷新一下');
					});
			
			},
			gettype() {
				var that = this
				this.$http.get(this.$url + '/zc/types/select')
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.zctype = response.data.data
						that.zctype.unshift({'name':'全部类型',id:''})
						that.$forceUpdate()
					})
					.catch(function(error) {
						console.log(error);
						// sessionStorage.setItem('token','undefined')
						// that.$router.push('/login')
						that.$Toast('网络拥堵，刷新一下');
					});
			
			},
			getlist() {
				this.showloading = true
				var that = this
				var param = {
					zcStatus:1,
					page:this.page,
					limit:this.limit,
					zcName:this.zcnames,
					zcCode:this.zcnums,
					zcType:this.zcvalues,
					zcBrand:this.ppvalues,
					zcMode:this.specifications,
					provider:this.suppliers,
					responsibleId:this.suserids,
					responsibleName:this.unames,
					beginDate:this.createStartDates?this.timeFormate(this.createStartDates):'',
					finishDate:this.createEndDates?this.timeFormate(this.createEndDates):'',
					deptId:this.departIds,
				}
				this.$http.post(this.$url + '/zc/selectList', this.$qs.stringify(param))
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.list = response.data.data
						for (var i = 0; i < that.list.length; i++) {
							that.list[i].chosesf = false
						}
						that.choseall = false
						that.inglen = response.data.count
						that.$forceUpdate()
						that.showloading = false
					})
					.catch(function(error) {
						console.log(error);
						// sessionStorage.setItem('token','undefined')
						// that.$router.push('/login')
						that.$Toast('网络拥堵，刷新一下');
					});

			},
		},

		computed: {},
	}
</script>
<style lang='less' scoped>
	.form-control[disabled],
	.form-control[readonly],
	fieldset[disabled] .form-control {
		background-color: #fff;
	}

	.input-cont>input {
		padding-right: 12px;
	}

	.input-cont div {
		word-break: break-all;
		max-width: 687px;
	}

	.bfsm {
		width: 650px;
		word-break: break-all;
	}

	.el-image {
		margin-right: 20px;
		margin-bottom: 20px;
	}

	.imgs {
		display: flex;
		flex-wrap: wrap;
	}

	.pintpage {
		page-break-after: always;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
	}

	.el-icon-delete {
		position: absolute;
		right: 5px;
		top: 5px;
		z-index: 20;
	}

	/deep/ .el-upload--picture-card {
		margin-right: 20px;
	}

	.bfli_l {
		width: 100px;
	}

	.bfli_r textarea {
		height: 130px;
	}

	.bfli_r {
		display: flex;
		flex-wrap: wrap;
		width: 600px;
	}

	.file {
		background-color: #fbfdff;
		border: 1px dashed #c0ccda;
		border-radius: 6px;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
		width: 148px;
		height: 148px;
		cursor: pointer;
		line-height: 146px;
		vertical-align: top;
		margin-right: 20px;
		margin-bottom: 20px;
		position: relative;
	}

	.flb {
		justify-content: space-between;
		align-items: flex-start;
	}

	.bfalert {
		height: 480px;
		overflow-y: auto;
		overflow-x: hidden;
	}

	.bfli {
		display: flex;
		padding: 0 30px;
	}

	.alert_btns {
		margin-top: 20px;
	}

	.nosys:hover .temenu {
		display: block;
	}

	.temli {
		height: 35px;
		line-height: 35px;
		cursor: pointer;
	}

	.temenu {
		position: absolute;
		background: #fff;
		box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
		width: 100px;
		top: 30px;
		border-radius: 5px;
		padding: 5px 0;
		display: none;
		z-index: 2;
	}

	.nosys {
		position: relative;
		display: flex;
		justify-content: center;
		width: 72px;
		margin: 0 auto;
	}

	.title {
		font-size: 24px;
		color: #000000;
	}

	.alert_info textarea {
		width: 100%;
		background: #FFFFFF;
		border: 1px solid #CCCCCC;
		box-shadow: 0px 2px 0px 0px #EEEEEE;
		border-radius: 5px;
		padding: 5px 10px;
		outline: none;
		margin-top: 10px;
		margin-bottom: -10px;
	}

	.task_li {
		display: flex;
		/* align-items: center; */
		margin-bottom: 20px;

	}

	.task_r textarea {
		width: 271px;
		height: 129px;
		background: #FFFFFF;
		border: 1px solid #CCCCCC;
		box-shadow: 0px 2px 0px 0px #EEEEEE;
		border-radius: 5px;
		padding: 5px 10px;
		outline: none;
	}

	.task_l {
		font-size: 14px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #000000;
		line-height: 34px;
	}

	.flexbox img {
		width: 18px;
		margin-left: 6px;
	}

	.flexbox {
		display: flex;
		align-items: center;
	}

	.rwname {
		font-size: 18px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #4286F5;
		width: 228px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.task_sp_bto {
		display: flex;
		justify-content: center;
		align-items: center;
		height: 67px;
	}

	.task_pass {
		width: 76px;
		height: 34px;
		background: #32B16C;
		border-radius: 6px;
		font-size: 14px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #FFFFFF;
		text-align: center;
		line-height: 34px;
		margin-left: 19px;
		cursor: pointer;
	}

	.task_th {
		width: 76px;
		height: 34px;
		background: #EC6941;
		border-radius: 6px;
		font-size: 14px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #FFFFFF;
		text-align: center;
		line-height: 34px;
		cursor: pointer;
	}

	.task_sp_no {
		font-size: 16px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #4286F5;
	}

	.task_sp_top {
		border-bottom: 1px solid #dce6fc;
		height: 80px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.task_sp_name {
		width: 48px;
		height: 48px;
		background: #4286F5;
		border-radius: 100%;
		font-size: 16px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #FFFFFF;
		margin-right: 13px;
	}

	.task_sp {
		width: 357px;
		height: 148px;
		background: #F1F4FD;
		border-radius: 6px;
		padding: 0 14px;
		margin-bottom: 30px;
	}

	.task_left {
		width: 50%;
		height: calc(100vh - 103px);
		overflow-y: scroll;
		padding: 35px 32px;
		overflow-x: hidden;
	}

	.task_box_title {
		display: flex;
		align-items: center;
		font-size: 20px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		margin-bottom: 10px;
		color: #000000;
	}

	.task_box {
		display: flex;
		align-items: stretch;
	}

	.task_cur {
		width: 9px;
		height: 9px;
		background: #D2D2D2;
		border-radius: 50%;
		margin-right: 10px;
	}

	.ri_li {
		display: flex;
		align-items: center;
		padding: 11px 20px;
		cursor: pointer;
	}

	.ri_li img {
		margin-right: 8px;
	}

	.rightmenu {
		position: absolute;
		width: 130px;
		height: 119px;
		background: #FFFFFF;
		/* border: 1px solid #D2D2D2; */
		box-shadow: 1px 2px 6px 0px rgba(0, 0, 0, 0.1);
		right: 0;
		padding-top: 7px;
	}

	.taskinfo_box {
		/* width: 865px; */
		animation: test .3s;
		width: 0;
		height: calc(100vh - 50px);
		background: #fff;
		box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.2);

	}

	@keyframes test2 {
		0% {
			width: 846px;
		}

		100% {
			width: 0;
		}
	}

	@keyframes test {
		0% {
			width: 0;
		}

		100% {
			width: 846px;
		}
	}

	.tx {
		animation: test .3s;
		width: 865px;
	}

	.tx2 {
		animation: test2 .3s;
		width: 0;
	}

	.task_info_title_right {
		position: relative;
	}

	.task_info_title_right img {
		width: 18px;
	}

	.task_info_title_left {
		width: 100px;
		height: 34px;
		background: #3574DA;
		border-radius: 17px;
		font-size: 14px;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #FFFFFF;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
	}

	.task_zzc {
		width: 846px;
		height: 100vh;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		position: fixed;
		padding-top: 50px;
		top: 0;
		/* left: 0; */
		right: 0;
		z-index: 5;
	}

	.taskinfo_title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 20px;
		background: #f7f7f7;
		height: 53px;
	}

	.rwadd {
		height: 20px;
		line-height: 20px;
		padding-right: 8px;
		border-right: 1px solid #fff;
		margin-right: 13px;
	}

	.rw {
		width: 120px;
		margin-bottom: 20px;
		background-color: #409eff;
		border-radius: 34px;
	}

	.btnsele {
		border: none;
		margin-bottom: 0 !important;

		margin-left: 0 !important;
	}

	.rw .btnsele /deep/ .el-input .el-select__caret {
		color: #fff;
		position: relative;
		left: 10px;
	}

	.rw .btnsele /deep/ .el-input__inner {
		width: 10px;
		border: none;
		padding: 0;
		background: transparent;
		color: transparent;
		/* height: 0; */
	}

	/* 
	.rw img {
		height: 13px;
		width: 13px;
		margin-right: 3px;
	} */

	.input-cont:hover .clears {
		display: block;
	}

	.clears {
		width: 10px;
		position: absolute;
		right: 35px;
		top: 14px;
		display: none;
		cursor: pointer;
	}

	.sublia {
		display: flex;

	}

	.subli textarea {
		width: 693px;
		height: 224px;
		background: #FFFFFF;
		border: 1px solid #CCCCCC;
		box-shadow: 0px 2px 0px 0px #EEEEEE;
		border-radius: 5px;
		outline: none;
		padding: 10px 10px;
	}

	.subli /deep/ .el-date-editor--date .el-input__inner,
	.subli /deep/ .el-date-editor.el-input,
	.el-date-editor.el-input__inner {
		width: 271px !important;
	}

	.subl {
		width: 100px;
		text-align: right;
		margin-right: 17px;
	}

	.subli /deep/ .el-input__prefix,
	.task_r /deep/ .el-input__prefix {
		right: 5px;
		left: auto;
		width: 25px;
	}

	.subli input,
	.subli .el-select {
		width: 271px;
		margin-left: 0;
	}

	.subli /deep/ .el-input__inner {
		height: 34px;
	}

	.subli label {
		margin-bottom: 0;
	}

	.sublist {
		padding-top: 15px;
	}

	.subli_left {
		display: flex;
		/* align-items: center; */
		width: 50%;
	}

	.subli {
		display: flex;
		/* align-items: center; */
		color: #000;
		margin-bottom: 15px;
		justify-content: space-between;
	}

	/deep/ .el-pagination .btn-prev {
		border: 1px solid #ccc;
		padding: 0;
		border-right: none;
		min-width: 33px;
		height: 33px;
		padding-top: 2px;
	}

	/deep/ .el-pagination .btn-next {
		border: 1px solid #ccc;
		padding: 0;
		border-left: none;
		min-width: 33px;
		height: 33px;
		padding-top: 2px;
	}

	/deep/ .el-pager li {
		border: 1px solid #ccc;
		padding: 0;
		border-right: none;
		min-width: 33px;
		height: 33px;
		line-height: 33px;
	}

	/deep/ .el-pager li:nth-last-of-type(1) {
		border-right: 1px solid #ccc;
	}

	/deep/ .el-pager li.active {
		border: #4286f5 1px solid;
		background: #4286f5;
		color: #fff;
	}

	.numslen {
		position: absolute;
		bottom: 0px;
		right: 50px;
		font-size: 12px;
	}

	/deep/ .el-input--prefix .el-input__inner {
		height: 34px;
		padding: 0 8px;
	}

	/deep/ .el-date-editor--date .el-input__inner {
		width: 120px !important;
	}

	.search_box /deep/ .el-input__inner {
		width: 110px;
		height: 34px;
		/* background: #F6F6F6; */
		border: 1px solid #CCCCCC;
		/* box-shadow: 0px 2px 0px 0px #EEEEEE; */
		border-radius: 5px;
	}

	/deep/ .el-input__icon {
		line-height: 34px;
	}


	.el-select {
		margin-left: 10px;
	}

	.search_box .el-select {
		margin-bottom: 20px;
	}

	.form-group .el-select {
		margin-left: 0px
	}

	.el-input__icon {
		line-height: 34px;
	}

	.el-input__inner {
		height: 34px;
		width: 110px;
		/* margin-left: 10px; */
	}

	.el-upload__input {
		bottom: 35px;
	}


	.btns {
		min-width: 72px;
		padding: 0 8px !important;
		width: auto !important;
	}


	.options {
		z-index: 40001;
	}



	.down_li:hover {
		background: #4286f5;
		color: #fff;
	}


	.modal-lg .modal-body.h100 {
		height: calc(100vh - 130px);
	}

	.el-input--prefix .el-input__inner {
		padding-left: 12px;
		padding-right: 12px;
	}

	.search_inp {
		/* width: 260px; */
		width: 115px;
		margin-left: 10px;
		margin-bottom: 20px;
	}

	.mb0,
	.mb0 .form-group {
		margin-bottom: 15px;
	}


	.btn-primary:hover {
		color: #fff !important;
		background: #4286f5 !important;
		border: none;
	}

	.btn-primary {
		outline: none !important;
		color: #fff !important;
		background: #4286f5 !important;
		margin-right: 18px;
	}

	.close_eng:hover {
		color: #434343 !important;
		background: #EEEEEE !important;
		border: none;
	}

	.close_eng {
		border: none;
		color: #434343 !important;
		background: #EEEEEE !important;
		outline: none !important;
	}

	.el-autocomplete {
		width: 271px;
	}

	.el-autocomplete-suggestion li.highlighted,
	.el-autocomplete-suggestion li:hover {
		background-color: #ddd;
	}

	.el-popper {
		margin-top: 0;
		margin-right: 0;
	}

	/* 	.el-scrollbar__wrap > .rws {
		margin-left: -34px;
		margin-right: 0;
	} */

	.my-autocomplete {
		border-radius: 0 0 6px 6px;
		min-width: 400px;
		margin-top: 0 !important;


		.popper__arrow {
			display: none;
		}

		.el-scrollbar__wrap {
			padding: 0 !important;
			overflow-x: scroll;

			li {
				padding: 0 !important;
				min-width: 320px;
			}

		}

	}

	.tab_td {
		width: 25%;
		min-width: 80px;
		display: inline-block;
		padding: 0 10px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.el-scrollbar__wrap {
		-ms-overflow-style: none !important;
	}

	.el-scrollbar__wrap::-webkit-scrollbar {
		display: none;
	}

	.el-scrollbar__wrap li:nth-of-type(1) .tab_tr {
		border-top: 1px solid #ddd;
		background-color: #ddd;
	}

	.tab_tr {
		height: 40px;
		border-bottom: 1px solid #ddd;
		line-height: 40px;
		/* display: flex; */
	}

	.text_org {
		color: #EB6100;
	}

	.container /deep/ tr td:nth-of-type(2) span {
		color: #22ac38;
	}

	.el-pagination__total {
		height: 33px !important;
		line-height: 33px !important;
	}

	.el-input--mini .el-input__inner {
		height: 33px;
	}

	.el-pagination__editor.el-input .el-input__inner {
		height: 33px;
	}

	.page_box {
		display: flex;
		justify-content: flex-end;
		margin-top: 30px;
	}

	.el-pagination .btn-prev {
		border: 1px solid #ccc;
		padding: 0;
		border-right: none;
		min-width: 33px;
		height: 33px;
		padding-top: 2px;
	}

	.el-pagination .btn-next {
		border: 1px solid #ccc;
		padding: 0;
		border-left: none;
		min-width: 33px;
		height: 33px;
		padding-top: 2px;
	}

	.el-pager li {
		border: 1px solid #ccc;
		padding: 0;
		border-right: none;
		min-width: 33px;
		height: 33px;
		line-height: 33px;
	}

	.el-pager li:nth-last-of-type(1) {
		border-right: 1px solid #ccc;
	}

	.el-pager li.active {
		border: #4286f5 1px solid;
		background: #4286f5;
		color: #fff;
	}

	.btns {
		width: 72px;
		padding: 0;
	}

	.zzc {
		width: 100vw;
		height: 100vh;
		position: fixed;
		top: 0;
		left: 0;
	}


	.ger:hover {
		background: #22ac38;
		color: #fff;
	}

	.loading-content {
		position: absolute;
		z-index: 2000;
		/* background-color: rgba(0, 0, 0, 0.8); */
		margin: 0;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		transition: opacity 0.3s;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		/* width: 200px;
		height: 150px;
		border-radius: 10px; */
	}

	.loading-spinner {
		text-align: center;
	}

	.loading-spinner .circular {
		height: 42px;
		animation: loading-rotate 2s linear infinite;
	}

	.loading-spinner .path {
		animation: loading-dash 1.5s ease-in-out infinite;
		stroke-dasharray: 90, 150;
		stroke-dashoffset: 0;
		/* stroke- 2; */
		stroke: #000;
		stroke-linecap: round;
	}

	.loading-text {
		font-size: 14px;
		color: #000;
	}

	@keyframes loading-rotate {
		100% {
			transform: rotate(360deg);
		}
	}

	@keyframes loading-dash {
		0% {
			stroke-dasharray: 1, 200;
			stroke-dashoffset: 0;
		}

		50% {
			stroke-dasharray: 90, 150;
			stroke-dashoffset: -40px;
		}

		to {
			stroke-dasharray: 90, 150;
			stroke-dashoffset: -120px;
		}
	}


	.qx:hover {
		/* background: #edf3fd; */
		/* color: #4286f5; */
	}

	/* 	.nosingle:hover {
		background: #d28679;
		color: #fff;
	} */

	.nosingle {
		/* background: #fcf4f2;  */
		color: #d28679;
	}

	/* .waitdoing:hover {
		background: #db9d46;
		color: #fff;
	}
 */
	.waitdoing {
		/* background: #fef6eb; */
		color: #db9d46;
	}

	/* .wait:hover {
		background: #af7087;
		color: #fff;
	} */

	.wait {

		/* background: #fbeff4; */
		color: #af7087;
	}



	.btns .iconfont {
		font-size: 10px;
		transition: all .3s;
		transform: rotateZ(0deg);
		line-height: 26px;
	}



	td,
	th {
		font-size: 14px;
		color: #333;
		/* line-height: 22px; */
		padding: 10px;
		border-top: 0;
		border-bottom: 1px solid #eee;
	}



	.modal {
		position: absolute;
	}

	.modal-dialog {
		height: 97%;
	}

	.modal-header {
		position: sticky;
		top: 0;
		z-index: 50;
	}

	.modal-content {
		/* width: 85%; */
		margin: 0 auto;
		max-height: 100%;
		/* height: 65vh; */
		/* overflow-y: scroll; */
	}

	.cent {
		width: 100%;
		align-items: center;
	}
</style>
